<?php

class Request{
    private $module;
    private $action;
    
    public function __construct() {
        $path=explode('/',$_SERVER['REQUEST_URI']);
        if($path[2]!='')
            $this->module=$path[2];
        else 
            $this->module='root';
        if($path[3]!='')
            $this->action=$path[2];
        else
            $this->action='view';
        return 0;
    }
    
    
    
    public function module(){
        return $this->module;
    }
    
    public function action(){
        return $this->action;
    }
    
}

?>